package com.payment;

import com.translate.web.param.contract.IPayBehaviorRequestParam;

public class Context {
	
	private IPaymentBehavior behavior;
	
	public Context(IPaymentBehavior behavior) {
		this.behavior = behavior;
	}
	
	public int run(IPayBehaviorRequestParam behaviorRequestParam) {
		return this.behavior.pay(behaviorRequestParam);
	}
}
